public class Demo08 {
    public static void main(String[] args) {
        Student s = new Student();
        s.name = "张三";
        System.out.println(s.hello());
    }
}


class Person08 {
    protected String name;
    private int age;
}

class Student extends Person08 {
    public String hello() {
        return "Hello, " + name; // 编译错误：无法访问name字段
    }
}


